/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class GradeEntity {
    @NotNull
    private final String code;
    @NotNull
    private final List<Grade> gradeList;
    @NotNull
    private final String name;

    public GradeEntity(@NotNull String code, @NotNull List<Grade> gradeList, @NotNull String name) {
        Intrinsics.checkNotNullParameter(code, "code");
        Intrinsics.checkNotNullParameter(gradeList, "gradeList");
        Intrinsics.checkNotNullParameter(name, "name");
        this.code = code;
        this.gradeList = gradeList;
        this.name = name;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ GradeEntity copy$default(GradeEntity gradeEntity, String str, List list, String str2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = gradeEntity.code;
        }
        if ((i2 & 2) != 0) {
            list = gradeEntity.gradeList;
        }
        if ((i2 & 4) != 0) {
            str2 = gradeEntity.name;
        }
        return gradeEntity.copy(str, list, str2);
    }

    @NotNull
    public final String component1() {
        return this.code;
    }

    @NotNull
    public final List<Grade> component2() {
        return this.gradeList;
    }

    @NotNull
    public final String component3() {
        return this.name;
    }

    @NotNull
    public final GradeEntity copy(@NotNull String code, @NotNull List<Grade> gradeList, @NotNull String name) {
        Intrinsics.checkNotNullParameter(code, "code");
        Intrinsics.checkNotNullParameter(gradeList, "gradeList");
        Intrinsics.checkNotNullParameter(name, "name");
        return new GradeEntity(code, gradeList, name);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof GradeEntity)) {
            return false;
        }
        GradeEntity gradeEntity = (GradeEntity) obj;
        return Intrinsics.areEqual(this.code, gradeEntity.code) && Intrinsics.areEqual(this.gradeList, gradeEntity.gradeList) && Intrinsics.areEqual(this.name, gradeEntity.name);
    }

    @NotNull
    public final String getCode() {
        return this.code;
    }

    @NotNull
    public final List<Grade> getGradeList() {
        return this.gradeList;
    }

    @NotNull
    public final String getName() {
        return this.name;
    }

    public int hashCode() {
        return (((this.code.hashCode() * 31) + this.gradeList.hashCode()) * 31) + this.name.hashCode();
    }

    @NotNull
    public String toString() {
        return "GradeEntity(code=" + this.code + ", gradeList=" + this.gradeList + ", name=" + this.name + ')';
    }
}